package com.kk.exception;

import java.util.List;


@SuppressWarnings("serial")
public class ValidationException extends Exception {
	private List<ValidationError> errors;
	
	public ValidationException(){
		
	}
	
	public ValidationException(List<ValidationError> errors) {
		setErrors(errors);
	}

	public void setErrors(List<ValidationError> errors) {
		this.errors = errors;
	}

	public List<ValidationError> getErrors() {
		return errors;
	}
}
